import axios from "axios";


const service = axios.create({
    baseURL:'http://novel.kele8.cn',
    timeout: 50000,
    headers: {
        "Content-type": "application/json;charset=UFT-8"
    }
})

service.interceptors.request.use(
    config => {
        return config
    },
    error => {
        console.log(error);
        Promise.reject(error);
    }
)

service.interceptors.response.use(
    response => {
        return response.data;
    },
    error => {
        console.log(error);
        return Promise.reject(error);
    }
)

export default service;